'use strict';
const db = uniCloud.database();
// 获取 `user` 集合的引用
const collection = db.collection('myScoreDownload');
const dbCmd = db.command;
exports.main = async (event, context) => {
	let {type,pageNum} = event
	pageNum = (pageNum-1)*12-0
	let startWalllist = await collection.where({
		type:type
	}).skip(pageNum).limit(12).get()
	//返回数据给客户端
	return startWalllist
};
